# 全局通用配置
class Config(object):
    db_url = "mysql+pymysql://root:root@127.0.0.1:3306/NebulaLog"

# 测试环境
class TestConfig(Config):
    if_echo = True
    LOG_LEVEL = "DEBUG"

# 开发环境
class ProductionConfig(Config):
    if_echo = False
    LOG_LEVEL = "INFO"

config = {
    'test': TestConfig,
    'production': ProductionConfig
}